<?php
class M_DbTable_VctInfo extends Apps_Db_Table_Abstract {
	protected $_name = 'vct_info';

	const STATUS_ACTIVE 	= 1;
	const STATUS_INACTIVE 	= 0;

	//get vct info
	public function getVctInfo() {
		$q = $this->_db
				  ->select()
				  ->from($this->_name)
				  ->where('status = 1');

		if($this->getLang() == 'en') {
		    $q->columns(array('address_1'  => 'en_address_1',
		                      'address_2'  => 'en_address_2'));
		} else {
		    $q->columns(array('address_1'  => 'address_1',
		                      'address_2'  => 'address_2'));
		}

 		return $q;
	}

	//LIST
	public function getList() {
		$q = $this->_db
				  ->select()
				  ->from($this->_name);
 		return $q;
	}
}